package com.meilai.project.vo.app;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author 张驰
 * @date 2021/10/31 0:37
 */
@ApiModel(value="返回对象-app工人首页信息VO-简要工单信息VO", description="返回对象-app工人首页信息-简要工单信息")
@Data
public class WorkerIndexWorkOrderProcessingVO {
    @ApiModelProperty(value = "工单id")
    private Long id;
    @ApiModelProperty(value = "工单名称")
    private String name;
    @ApiModelProperty(value = "工单类型id")
    private Integer work_order_type_id;
    @ApiModelProperty(value = "工单类型名称")
    private String work_order_type_name;
    @ApiModelProperty(value = "工单总数")
    private Integer total_num;
    @ApiModelProperty(value = "已提交，待审核数")
    private Integer submit_to_check_num;
    @ApiModelProperty(value = "已提交，通过数")
    private Integer submit_passed_num;
    @ApiModelProperty(value = "已提交总数")
    private Integer submit_total_num;
    @ApiModelProperty(value = "超时（超出工单截止时间，且未手动关闭的）")
    private Boolean is_expired;
    @ApiModelProperty(value = "完成（手动关闭，或提交数已满）")
    private Boolean is_finished;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime created_at;
    @ApiModelProperty(value = "工人最新提交")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime newest_worker_submit;
}
